//-----------------------------------------------------------------------
// <copyright file="a_WearTypeService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_WearTypeService
    {
        #region a_WearType

        public static void Createa_WearType(a_WearType a_WearType)
        {            
            try
            {
                a_WearTypeDAO a_WearTypeDAO = new a_WearTypeDAO();
                a_WearTypeDAO.Createa_WearType(a_WearType);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_WearType(a_WearType a_WearType)
        {            
            try
            {
                a_WearTypeDAO a_WearTypeDAO = new a_WearTypeDAO();
                a_WearTypeDAO.Updatea_WearType(a_WearType);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_WearType(int wTypeID)
        {            
            try
            {
                a_WearTypeDAO a_WearTypeDAO = new a_WearTypeDAO();
                a_WearTypeDAO.Deletea_WearType(wTypeID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_WearType Geta_WearType(int wTypeID)
        {            
            try
            {
                a_WearTypeDAO a_WearTypeDAO = new a_WearTypeDAO();
                return a_WearTypeDAO.Geta_WearType(wTypeID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_WearTypeCollection Geta_WearTypeList(a_WearTypeColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_WearTypeDAO a_WearTypeDAO = new a_WearTypeDAO();
                return a_WearTypeDAO.Geta_WearTypeList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_WearTypeCollection Geta_WearTypeList(a_WearTypeColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_WearTypeDAO a_WearTypeDAO = new a_WearTypeDAO();
                return a_WearTypeDAO.Geta_WearTypeList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_WearTypeCollection Geta_WearTypeList_alphabet(string mychar, a_WearTypeColumns orderBy, OrderDirection orderDirection)
        {
            try
            {
                a_WearTypeDAO a_WearTypeDAO = new a_WearTypeDAO();
                return a_WearTypeDAO.Geta_WearTypeList_alphabet(mychar, orderBy, orderDirection);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_WearTypeCollection Geta_WearTypeList_alphabet(string mychar, a_WearTypeColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {
            try
            {
                a_WearTypeDAO a_WearTypeDAO = new a_WearTypeDAO();
                return a_WearTypeDAO.Geta_WearTypeList_alphabet(mychar, orderBy, orderDirection, page, pageSize, out totalRecords);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}